/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-03-15
 * Time: 22:29
 */
public class TDVector {
    private double x;
    private double y;
    public String toString() {
        return "("+this.x+","+this.y+")";
    }
    public TDVector(){}
    public TDVector(double a, double b){
        x = a;
        y = b;
    }
    public TDVector(TDVector sys){
        x = sys.x;
        y = sys.y;
    }
    public double getX(){
        return x;
    }
    public double getY(){
        return y;
    }
    public void setX(double date){
        x = date;
    }
    public void setY(double date){
        y = date;
    }
    public TDVector add(TDVector sys){
        TDVector tmp = new TDVector();
        tmp.x = x + sys.x;
        tmp.y = y + sys.y;

        return tmp;
    }
}
